<?php session_start(); ?><!DOCTYPE html>

<!--
(KUMBANG POLLING) - SISTEM VOTING DAN EVALUASI ASISTEN 
Versi 2.1 oleh Tim Kreatif Poling Asisten (Versi Build 1.9 oleh AGUS SIGIT WISNUBROTO)
untuk FORUM ASISTEN STMIK Amikom Yogyakarta<br>

Pengembangan Lanjut SIVEA oleh Tim Kreatif Poling Asisten
Wande Tricada|Angga Reza Palevi|Farisah Al-Haq|Aditya Rifa Kartika|Titis Nur Pratomo
fa.amikom@gmail.com / cp: 085-728-725-696<br>
-->
<!--[if lt IE 7 ]><html class="ie ie6" lang="en"> <![endif]-->
<!--[if IE 7 ]><html class="ie ie7" lang="en"> <![endif]-->
<!--[if IE 8 ]><html class="ie ie8" lang="en"> <![endif]-->
<!--[if (gte IE 9)|!(IE)]><!--><html lang="en"> <!--<![endif]-->
<head>

	<!-- Basic Page Needs
  ================================================== -->
	<meta charset="utf-8">
	<title>Control Panel - Sivea 2.1</title>
	<meta name="description" content="">
	<meta name="author" content="Sigit" >

	<script type="text/javascript" src="jquery.js"></script>
	<script type="text/javascript" src="jquery-impromptu.js"></script>
	
	<!-- CSS
  ================================================== -->
	<link rel="stylesheet" href="../style/base.css">
	<link rel="stylesheet" media="all" type="text/css" href="jquery-impromptu.css" />

	<!-- Favicons
	================================================== -->
	<link rel="shortcut icon" href="../style/images/favicon.ico">


</head>
<?php
	include("dboper.php");
	$d_sistem = getConfig();
	
   

?>
<body>

<?php $detail=getDetailJaprak($d_sistem['japrak']); ?>
	<div class="container">
		<div class="formbox">
			<div class="fb_header"><img src="../style/images/logo.gif" width="25px"> Control Panel - Sivea 2.1</div><div class="fb_statusbar"><div id="status"><img id="loading" src="../style/images/loading.gif"/></div></div>	
			<hr>
			<div class="fb_info">Matakuliah : <?php echo $detail['nama_matkul']." | Kelas : ".$detail['nama_kelas'] ; ?></div>
			<hr>
			<div hidden id="fb_menuWrap">
                <a class="menuAdmin" id="menuBeranda">Beranda</a> 
                <a class="menuAdmin" id="menuLihatAsisten">Lihat Asisten</a> 
                <a class="menuAdmin" id="menuLihatVote">Lihat Vote</a> 
                <a class="menuAdmin" id="menuKonfigurasi">Lihat Konfigurasi</a> 
                <a class="menuAdmin" id="menuSinkronasi">Sinkronasi</a> 
                <a class="menuAdmin" href=".." target="_blank" id="menuKonfigurasi">Lihat Home</a>
                <a class="menuAdmin" id="menuAbout" >?</a>&nbsp;&nbsp;&nbsp;
				<a class="menuAdmin" id="menuSelesai" style="color:red;"><b>Selesai</b></a>
                <a class="menuAdmin" id="menuLogout" style="color:red;"><b>Logout</b></a><hr>
            </div>
			<div class="fb_content" id="fb_content"></div>
			<hr>
			<center>Forum Asisten STMIK Amikom Yogyakarta &copy; 2014</center>
		</div>
	</div>
</body>
<script type="text/javascript" >
	$("#loading").hide();
	<?php 
	if(!cekServer()){
		sendLogClient($d_sistem['japrak'],$_SERVER['REMOTE_ADDR']);
	?>
		alert("Anda mencoba membuka menu admin, no komputer anda telah tercatat dan dimasukan kedalam berita acara Forum Asisten");
	
	<?php 
	}else{
	if($_SESSION['username'] == null){ ?>
		$("#fb_menuWrap").hide();
		$("#fb_content").load('adminlogin.php', {akses:true});
	<?php } else { ?>
		$("#fb_menuWrap").show();
		$("#fb_content").load('admincontent.php', {akses:true});
	<?php } }?>
	
</script>
	
</html>
